package com.aigis.big4.tmp.javase.collection.map;

import java.util.Objects;

public class A {
    int count;
    public A(int count){
         this.count=count;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        A a = (A) o;
        return count == a.count;
    }

//    @Override
//    public int hashCode() {
//        return Objects.hash(count);
//    }

    @Override
    public int hashCode() {
        return this.count;
    }
}
